<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
</head>
<body>
    <div id="root">
        <h1>hello.{{name}}</h1>
        <a v-bind:href="name">11111</a>
        <a :href="name"  >11111</a>
        <input type="text" @keyup.enter = "show">
    </div>
    <script>
        const x =new Vue({
            el:'#root',
            data:{
                name:'zhangsan'
            },
            methods: {
                show(){
                    console.info("111");
                }
            },
        })
    </script>
</body>
</html>